from rest_framework.viewsets import ModelViewSet

from apps.meiduo_admin.serializers.order import OrderModelSerializer
from apps.meiduo_admin.utils import PageNum
from apps.order.models import OrderInfo


class OrderModelViewSet(ModelViewSet):
    queryset = OrderInfo.objects.all()

    serializer_class = OrderModelSerializer

    pagination_class = PageNum
